/*
 * 人人信用管理有限公司版权所有.
 * 
 * @Description:
 * 
 * @author: liyuliang
 * 
 * @date: 20 Apr 2017 10:44:16 am
 * 
 * 注意：本内容仅限于人人信用管理有限公司内部传阅，禁止外泄以及用于其他的商业目的.
 */

package com.rrx360.common.pagequery;

public class FieldEntry {

  private String name;

  private Object value;

  private String queryKey;

  private String queryCmp;

  private Object queryValue;

  public FieldEntry() {

  }

  public FieldEntry(String name, Object value) {
    this.name = name;
    this.value = value;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Object getValue() {
    return value;
  }

  public void setValue(Object value) {
    this.value = value;
  }

  public String getQueryKey() {
    if (queryKey == null) {
      return name;
    }
    return queryKey;
  }

  public void setQueryKey(String queryKey) {
    this.queryKey = queryKey;
  }

  public String getQueryCmp() {
    if (queryCmp == null) {
      return "=";
    }
    return queryCmp;
  }

  public void setQueryCmp(String queryCmp) {
    this.queryCmp = queryCmp;
  }

  public Object getQueryValue() {
    if (queryValue == null) {
      return value;
    }
    return queryValue;
  }

  public void setQueryValue(Object queryValue) {
    this.queryValue = queryValue;
  }



}
